Optimal. Leaf size=200 \[ -\frac {8 (c d f-a e g) \left (2 a e^2 g-c d (5 e f-3 d g)\right ) \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{105 c^3 d^3 e (d+e x)^{3/2}}+\frac {8 g (c d f-a e g) \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{35 c^2 d^2 e \sqrt {d+e x}}+\frac {2 (f+g x)^2 \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{7 c d (d+e x)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 200, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {884, 808, 662}
\begin {gather*} -\frac {8 \left (x \left (a e^2+c d^2\right )+a d e+c d e x^2\right )^{3/2} (c d f-a e g) \left (2 a e^2 g-c d (5 e f-3 d g)\right )}{105 c^3 d^3 e (d+e x)^{3/2}}+\frac {8 g \left (x \left (a e^2+c d^2\right )+a d e+c d e x^2\right )^{3/2} (c d f-a e g)}{35 c^2 d^2 e \sqrt {d+e x}}+\frac {2 (f+g x)^2 \left (x \left (a e^2+c d^2\right )+a d e+c d e x^2\right )^{3/2}}{7 c d (d+e x)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 662
Rule 808
Rule 884
Rubi steps
\begin {align*} \int \frac {(f+g x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{\sqrt {d+e x}} \, dx &=\frac {2 (f+g x)^2 \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{7 c d (d+e x)^{3/2}}+\frac {\left (4 \left (c d e^2 f+c d^2 e g-e \left (c d^2+a e^2\right ) g\right )\right ) \int \frac {(f+g x) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{\sqrt {d+e x}} \, dx}{7 c d e^2}\\ &=\frac {8 g (c d f-a e g) \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{35 c^2 d^2 e \sqrt {d+e x}}+\frac {2 (f+g x)^2 \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{7 c d (d+e x)^{3/2}}-\frac {\left (4 (c d f-a e g) \left (2 a e^2 g-c d (5 e f-3 d g)\right )\right ) \int \frac {\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{\sqrt {d+e x}} \, dx}{35 c^2 d^2 e}\\ &=-\frac {8 (c d f-a e g) \left (2 a e^2 g-c d (5 e f-3 d g)\right ) \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{105 c^3 d^3 e (d+e x)^{3/2}}+\frac {8 g (c d f-a e g) \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{35 c^2 d^2 e \sqrt {d+e x}}+\frac {2 (f+g x)^2 \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{7 c d (d+e x)^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 90, normalized size = 0.45 \begin {gather*} \frac {2 ((a e+c d x) (d+e x))^{3/2} \left (8 a^2 e^2 g^2-4 a c d e g (7 f+3 g x)+c^2 d^2 \left (35 f^2+42 f g x+15 g^2 x^2\right )\right )}{105 c^3 d^3 (d+e x)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 106, normalized size = 0.53
method | result | size |
default | \(\frac {2 \left (c d x +a e \right ) \left (15 g^{2} x^{2} c^{2} d^{2}-12 a c d e \,g^{2} x +42 c^{2} d^{2} f g x +8 a^{2} e^{2} g^{2}-28 a c d e f g +35 f^{2} c^{2} d^{2}\right ) \sqrt {\left (c d x +a e \right ) \left (e x +d \right )}}{105 c^{3} d^{3} \sqrt {e x +d}}\) | \(106\) |
gosper | \(\frac {2 \left (c d x +a e \right ) \left (15 g^{2} x^{2} c^{2} d^{2}-12 a c d e \,g^{2} x +42 c^{2} d^{2} f g x +8 a^{2} e^{2} g^{2}-28 a c d e f g +35 f^{2} c^{2} d^{2}\right ) \sqrt {c d e \,x^{2}+a \,e^{2} x +c \,d^{2} x +a d e}}{105 c^{3} d^{3} \sqrt {e x +d}}\) | \(116\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 135, normalized size = 0.68 \begin {gather*} \frac {2 \, {\left (c d x + a e\right )}^{\frac {3}{2}} f^{2}}{3 \, c d} + \frac {4 \, {\left (3 \, c^{2} d^{2} x^{2} + a c d x e - 2 \, a^{2} e^{2}\right )} \sqrt {c d x + a e} f g}{15 \, c^{2} d^{2}} + \frac {2 \, {\left (15 \, c^{3} d^{3} x^{3} + 3 \, a c^{2} d^{2} x^{2} e - 4 \, a^{2} c d x e^{2} + 8 \, a^{3} e^{3}\right )} \sqrt {c d x + a e} g^{2}}{105 \, c^{3} d^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.06, size = 174, normalized size = 0.87 \begin {gather*} \frac {2 \, {\left (15 \, c^{3} d^{3} g^{2} x^{3} + 42 \, c^{3} d^{3} f g x^{2} + 35 \, c^{3} d^{3} f^{2} x + 8 \, a^{3} g^{2} e^{3} - 4 \, {\left (a^{2} c d g^{2} x + 7 \, a^{2} c d f g\right )} e^{2} + {\left (3 \, a c^{2} d^{2} g^{2} x^{2} + 14 \, a c^{2} d^{2} f g x + 35 \, a c^{2} d^{2} f^{2}\right )} e\right )} \sqrt {c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e} \sqrt {x e + d}}{105 \, {\left (c^{3} d^{3} x e + c^{3} d^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {\left (d + e x\right ) \left (a e + c d x\right )} \left (f + g x\right )^{2}}{\sqrt {d + e x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 465 vs.
\(2 (187) = 374\).
time = 2.41, size = 465, normalized size = 2.32 \begin {gather*} \frac {2}{105} \, {\left (35 \, f^{2} {\left (\frac {{\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {3}{2}} e^{\left (-1\right )}}{c d} + \frac {\sqrt {-c d^{2} e + a e^{3}} c d^{2} - \sqrt {-c d^{2} e + a e^{3}} a e^{2}}{c d}\right )} e^{\left (-1\right )} + g^{2} {\left (\frac {{\left (15 \, \sqrt {-c d^{2} e + a e^{3}} c^{3} d^{6} - 3 \, \sqrt {-c d^{2} e + a e^{3}} a c^{2} d^{4} e^{2} - 4 \, \sqrt {-c d^{2} e + a e^{3}} a^{2} c d^{2} e^{4} - 8 \, \sqrt {-c d^{2} e + a e^{3}} a^{3} e^{6}\right )} e^{\left (-2\right )}}{c^{3} d^{3}} + \frac {{\left (35 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {3}{2}} a^{2} e^{6} - 42 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {5}{2}} a e^{3} + 15 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {7}{2}}\right )} e^{\left (-5\right )}}{c^{3} d^{3}}\right )} e^{\left (-1\right )} - 14 \, f g {\left (\frac {{\left (5 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {3}{2}} a e^{3} - 3 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {5}{2}}\right )} e^{\left (-2\right )}}{c^{2} d^{2}} + \frac {3 \, \sqrt {-c d^{2} e + a e^{3}} c^{2} d^{4} - \sqrt {-c d^{2} e + a e^{3}} a c d^{2} e^{2} - 2 \, \sqrt {-c d^{2} e + a e^{3}} a^{2} e^{4}}{c^{2} d^{2}}\right )} e^{\left (-2\right )}\right )} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.25, size = 157, normalized size = 0.78 \begin {gather*} \frac {\sqrt {c\,d\,e\,x^2+\left (c\,d^2+a\,e^2\right )\,x+a\,d\,e}\,\left (\frac {2\,g^2\,x^3}{7}+\frac {16\,a^3\,e^3\,g^2-56\,a^2\,c\,d\,e^2\,f\,g+70\,a\,c^2\,d^2\,e\,f^2}{105\,c^3\,d^3}+\frac {x\,\left (-8\,a^2\,c\,d\,e^2\,g^2+28\,a\,c^2\,d^2\,e\,f\,g+70\,c^3\,d^3\,f^2\right )}{105\,c^3\,d^3}+\frac {2\,g\,x^2\,\left (a\,e\,g+14\,c\,d\,f\right )}{35\,c\,d}\right )}{\sqrt {d+e\,x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________